package com.qianmi.cloud.mapper;

import com.qianmi.cloud.bean.OauthClientDetails;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * @Description
 * @Date: 1/16/22 17:39
 * @Created by xiaocai
 */
public interface OauthClientDetailsRepository extends JpaRepository<OauthClientDetails, Integer>, JpaSpecificationExecutor<OauthClientDetails> {

    /**
     * 根据客户端ID查询配置信息
     *
     * @param clientId 客户端ID
     * @return
     */
    OauthClientDetails findByClientId(String clientId);
}
